projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23ffd69
)
Fix memorytexture float conversion
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 15 Sep 2021 04:27:32 +0000
(
00:27
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 16 Sep 2021 01:14:59 +0000
(21:14 -0400)
This was silently dropping the alpha in one case.
gdk/gdkmemorytexture.c
patch
|
blob
|
history
diff --git
a/gdk/gdkmemorytexture.c
b/gdk/gdkmemorytexture.c
index 631357bcc8fb8e31a5b0dd667bec98c6e24fae8b..6c08ef531bcdd13a4fba1ad6282a6f934cac5efe 100644
(file)
--- a/
gdk/gdkmemorytexture.c
+++ b/
gdk/gdkmemorytexture.c
@@
-603,7
+603,7
@@
convert_rgba16_to_float (float *dest, const guchar *src_data)
dest[0] = src[0] / 65535.f;
dest[1] = src[1] / 65535.f;
dest[2] = src[2] / 65535.f;
- dest[3] =
1.0
;
+ dest[3] =
src[3] / 65535.f
;
}
static inline void